<?php


namespace app\index\model;


class Article extends Base
{
    protected $pk='a_id';
    public function getimgAttr($img)
    {
        $host_public=config('host_public');

        if(preg_match("/https/i",$img)){
            return $img;
        }else{
            return $host_public.$img;
        };
    }

}